package com.ysy.logistics.entities.oam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/19 16:46
 **/
@Data
@TableName("login_log")
@Schema(name = "login_log", description = "登录日志")
@Accessors(chain = true)
public class LoginLog {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "日志id")
    private Long id;
    @Schema(description = "日志表述")
    @TableField(value = "log_name")
    private String logName;
    @Schema(description = "操作用户id")
    @TableField(value = "user_id")
    private String userId;
    @Schema(description = "操作用户名")
    @TableField(value = "user_name")
    private String userName;
    @Schema(description = "操作结果标识")
    @TableField(value = "succeed")
    private String succeed;
    @Schema(description = "日志详情")
    @TableField(value = "message")
    private String message;
    @Schema(description = "操作ip")
    @TableField(value = "ip")
    private String ip;
    @Schema(description = "操作时间")
    @TableField(value = "create_time")
    private Date createTime;
}
